package com.forum.mapper.photo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.forum.mapper.param.PhotoDetailResponseParam;
import com.forum.mapper.param.RecommendPhotoResponseParam;
import com.forum.pojo.photo.PhotoWall;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Tsing
 * 照片墙Mapper
 */
public interface PhotoWallMapper extends BaseMapper<PhotoWall> {

    List<RecommendPhotoResponseParam> getRecommendPhoto(@Param("page")Integer page,
                                                        @Param("size")Integer size,
                                                        @Param("categoryId")Integer categoryId);

    PhotoDetailResponseParam getPhotoDetail(@Param("photoWallId")Integer photoWallId);

    List<RecommendPhotoResponseParam> getMyPhotoWalls(@Param("userId") Integer userId,
                                                      @Param("page")Integer page,
                                                      @Param("size")Integer size);
}
